package com.yang.designmode.flyweight;
// 具体享元类
public class ConcreteFlyweight implements Flyweight {

    private String intrinsicState; // 内部状态，可共享

    public ConcreteFlyweight(String intrinsicState) {
        this.intrinsicState = intrinsicState;
    }

    @Override
    public void operation(String extrinsicState) {
        System.out.println("内部状态: " + intrinsicState + ", 外部状态: " + extrinsicState);
    }
}

